package edu.nus.mtech.sem1.ca.main;

import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JInternalFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextPane;
import javax.swing.border.EmptyBorder;

import edu.nus.mtech.sem1.ca.utils.Logger;


@SuppressWarnings("serial")
public class FormAbout extends JInternalFrame {

	private JPanel contentPane;	
	private JTextPane jTextPane1;
	private JLabel jLabel1_about;

	/**
	 * Create the frame.
	 */
	public FormAbout() {		
//		super("Customer Information", 
//	              false, //resizable
//	              true, //closable
//	              false, //maximizable
//	              true);
		
		
		
		this.setBounds(0, 0, 330, 300);
		this.setPreferredSize(new java.awt.Dimension(330, 300));
		this.setTitle("About");
		{
			contentPane = new JPanel();
			this.setContentPane(contentPane);
			contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
			contentPane.setLayout(null);
			contentPane.setPreferredSize(new java.awt.Dimension(332, 277));
			contentPane.setOpaque(false);
			contentPane.setMaximumSize(new java.awt.Dimension(1175, 1125));
			{
				JButton btnClose = new JButton("Close");
				contentPane.add(btnClose);
				btnClose.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent arg0) {
						setVisible(false);
						try {
							this.finalize();
							pack();							
							pack();
							pack();
						} catch (Throwable e) {
							// TODO: handle exception
							Logger.log(e.getMessage());
						}
					};
				});
				btnClose.setBounds(110, 235, 89, 23);
			}
		}
		{
			jTextPane1 = new JTextPane();
			getContentPane().add(jTextPane1, BorderLayout.CENTER);
			jTextPane1.setText("One# Billing System for telephony services. \n \nThis project is done by the following: \n" + " 1. Arun\n" + " 2. Hu Tian Yang\n"+ " 3. Lai Oi Lye\n"+ " 4. Li Guan Jun\n"+ " 5. Nasri Bin Najib\n"+ " 6. Zaw Myo Tun\n");
			jTextPane1.setBounds(44, 46, 235, 163);
		}
		{
			jLabel1_about = new JLabel();
			contentPane.add(jLabel1_about);
			jLabel1_about.setText("About");
			jLabel1_about.setBounds(140, 17, 47, 14);
		}

	}

	

}
